from django.contrib.auth.models import Group
from rest_framework import serializers

class GroupModelSerializer(serializers.ModelSerializer):

    class Meta:
        model = Group
        fields = '__all__'


from django.contrib.auth.models import Permission
from rest_framework import serializers

class PermissionModelSerializer(serializers.ModelSerializer):

    class Meta:
        model = Permission
        fields = '__all__'